package com.angel.domain.angelvoice.factory;

import com.angel.domain.angelhelp.valueobjects.AngelHelpId;
import com.angel.domain.angeluser.valueobjects.AngelUserId;
import com.angel.domain.angelvoice.aggregates.AngelVoice;
import com.angel.domain.angelvoice.valueobjects.AngelVoiceInfo;

public class AngelVoiceFactory {

    public static AngelVoice create(Long helpId,Long publishUserId,String content) {

        AngelVoice angelVoice = new AngelVoice(
                AngelHelpId.toAngelHelpId(helpId),
                AngelUserId.toAngelUserId(publishUserId),
                new AngelVoiceInfo(content)
        );

        return angelVoice;
    }
}
